<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>武沛齐</title>
</head>
<body>
<audio autoplay controls id="player"></audio>
</body>
<script type="application/javascript">
    var ws = new WebSocket("ws://192.168.16.80:9528/pq");
    ws.onmessage = function (eventMessage) {
        console.log(eventMessage.data);
        var msg = JSON.parse(eventMessage.data);

        document.getElementById("player").src = "http://192.168.16.80:9527/get_music/"+msg.filename;

    }
</script>
</html>